/*
 * debug路由
 * @Author: ljb
 * @Date: 2018-12-27 13:41:29
 * @Last Modified by: ljb
 * @Last Modified time: 2018-12-28 09:30:29
 */
const debug_router = [];

if (process.env.NODE_ENV === 'development') {
	const debug_router_obj = {
		path: '/v-debug',
		component(resolve) {
			return require.ensure([], () => resolve(require('./views/debug/index.vue')), 'debug-index');
		},
		children: [
			{
				path: '/',
				name: 'debug',
				meta: {
					title: 'debug测试',
				},
				component: resolve => require.ensure([], () => resolve(require('./views/debug/vuex.vue')), 'debug-vuex'),
			},
			{
				path: 'example',
				meta: {
					title: 'example测试',
				},
				component: resolve => require.ensure([], () => resolve(require('./views/debug/example.vue')), 'example'),
			},
			{
				path: 'example2',
				meta: {
					title: 'example2测试',
				},
				component: resolve => require.ensure([], () => resolve(require('./views/debug/example2.vue')), 'example2'),
			},
		],
	};

	debug_router.push(debug_router_obj);
}

export default debug_router;

